Fix a hang after failing to run an *.elf file and stopping emulator

This function is called on the stop button to kill the CPU thread. The default parameter for the ThreadBase::Stop() takes a wait parameter that is set to true, causing the thread to deadlock (presumably) on a join.