FEAT: improved JNIdemo exiting sequence by calling System.exit(0) through JNI.
FEAT: added static method retrieving and calling in JNI.