Added exceptions to virtual machine