bugfix: when the parent had a fatal error, the workers haven't terminated