Killing Blender processes
On Windows, you can kill Blender easily by opening the task manager,then selecting &quot;end process&quot;.
You would not need to use python.
Here's a pic:

You can access task manager by pressing CTRL+ALT+DELETE.
On Mac, you can do just about the same thing, just this is done in the activity monitor Instead.