jni check close