A simple set of code to enable JNI Native crashes to be caught by java and throw a meaningfull exception