Local JNI references have to be deleted in a timely manner.