Fixed invalid return code when the deployment was successful.