Better wait for the OS to halt. `monitor.puts "print $eip"; eip = monitor.gets; eip != prev_eip`