fixed signal handling in non-workers