orbita-emu: deadlock on write() error