ensure worker exits