Thread termination would be in the reverse order of what threading.enumerate produces (which is pretty much thread creation order since dicts became order preserving).
A dedicated interactive loop shut down hook would be tricky to define, since there are so many REPL implementations out there.