It's not entirely correct yet and will probably fail on recursive c++ exceptions, but it fixes basic c++ exception handling.