Fix zombie bug in workers