Reorder statements in BoostVM::terminate()