I am running Blender 2.8 in Linux, starting the application from the command line (so I can access the scripts output). Now, if from the python script I call sys.exit(), not only does the script terminate, but the whole Blender process as well.

Is there an easy way to kill the script, without exiting Blender?