Emulator properly waits for IO without busy loop