CHEF-1761: Change signal TERM to quit after the running jobs are finished

Followup to #545, rebased to master.