tracking vm_run and exit loop