stackoverflow.com: how to exit the entire application from a Python thread? python docs.python.org: thread.interrupt_main() python stackoverflow.com: why does sys.exit() not exit when called inside a thread in Python? python