Catch all exceptions in unloadFMU and returns non-0-exit code on error
Currently the unloadFMU function causes the JVM to crash if something goes wrong in unloadFMU. We should return proper error code from the function and catch all exceptions in the native C code.