When shutting down the emulator and starting another, it's otherwise possible for the first read from the new emulator to return an error (EIO from the pty read in Expect). WIP because I've only done this for simh...