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

Implement graceful shutdown of chef-client.

Chef::Application::Wakeup removed as it is no longer used.