return to previous status when emulator closes