Fix a bug where quitting emulator would only unpause it