removed useless if statement in the signal handler of worker