changed end_record to no longer leave guest halted. tested.  seems to work