added signal handling in workers so jobs will complete upon ctl-c so clients won't keep polling forever waiting for the results