when the java-udf open function failed, and some JNI have not set, so in close function can't call jni.