Added a pause if python returns a non-zero exit code