raise exception if deploying fails