making the native code exit right away after the exception is created.