It's a smart idea to catch and re-raise KeyboardInterrupts, so that you could however get rid of This system utilizing Ctrl-C. Logging is outside the scope of the question, but a very good solution is logging. Documentation to the sys and traceback modules. You are able to check with the https://howtogetfreephone86532.blogvivi.com/37743541/how-to-get-free-phone-an-overview