Make sure the io thread doesn't revive itself.

Stupid zombies.  Stay dead.
Make sure the cpu thread ends on Core_Stop().

Sometimes it didn't, which was just a bit confusing.
Merge pull request #4145 from unknownbrackets/shutdown

More shutdown tweaks