Prevent workers test racing on uncaught exception