Fixed exception throws in VM.