fixed error handling of deploy steps