This is essential knowledge for creating scripts that can "integrate" with others. Please see the link below for details. Click here for the blog post Terminating Python scripts with sys.exit (): ...