It is a good idea to catch and re-elevate KeyboardInterrupts, to be able to still destroy This system employing Ctrl-C. Logging is outside the house the scope in the dilemma, but an excellent choice is logging. Documentation for that sys and traceback modules. Logging ranges and outputs can be adjusted, https://zaneksyej.shoutmyblog.com/36088436/the-smart-trick-of-free-government-phone-that-nobody-is-discussing