VM should be exception safe to avoid ending in invalid state.