Quick one line change fixes a hang after failing to run an *.elf file and stopping the emulator via the Stop button.