taking care of cleaning JNI table