Allow worker to process multiple jobs and terminate gracefully