> when the VM exits

"right before the VM terminates" would be more precise.