fixed exception handling (don't catch Error or VirtualMachineError)