Fix crash if thread is manually shut down before it is destroyed.
Fix crash if thread is manually shut down before it is destroyed.

gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm