It can be a smart idea to catch and re-elevate KeyboardInterrupts, so that you could however eliminate the program utilizing Ctrl-C. Logging is outside the scope of the problem, but a good choice is logging. Documentation for the sys and traceback modules. I am endeavoring to write a PowerShell script https://get-social-now.com/story5579451/5-easy-facts-about-find-weed-in-southampton-described