Gracefully shutdown workers/threads in case of SIGINT
Merge pull request #2788 from Who828/handle_sigints_for_workers

Gracefully shutdown workers/threads in case of SIGINT