Cleanup local JNI ref