Delete the local JNI reference after use to fix possible crashes after some time periodically scanning ports on several android devices: JNI ERROR (app bug): local reference table overflow (max=512)