It is really a smart idea to catch and re-raise KeyboardInterrupts, so as to however eliminate the program making use of Ctrl-C. Logging is outdoors the scope of the dilemma, but a very good solution is logging. Documentation to the sys and traceback modules. This query is within a collective: https://nimmansocial.com/story10156074/how-get-marijuana-in-bath-can-save-you-time-stress-and-money