Before restarting program, restore machine status existing at stop time