It really is a good idea to capture and re-increase KeyboardInterrupts, so that you can nonetheless kill This system applying Ctrl-C. Logging is exterior the scope in the question, but a very good possibility is logging. Documentation for that sys and traceback modules. In case you focus on with a https://helpmehigh.com/