Working on code to correctly shut down multi-threaded apps when forcefully aborted.