Properly verify that child workers are terminated when the factory is