Fix hang when all worker nodes crash and restart limit is reached