Introduce VM::hasPendingTerminationException() to make code a little more terse.