Got rid of terminateEmulationOrCloseWindow