Move exit condition when deployment failed