It's a smart idea to catch and re-raise KeyboardInterrupts, to be able to nevertheless eliminate This system working with Ctrl-C. Logging is outside the house the scope of the question, but a great alternative is logging. Documentation to the sys and traceback modules. I have previously been mentioned here for https://bookmarkuse.com/story19993298/rumored-buzz-on-weed-in-belfast