Reconnect to the JVM if the PID of this process changes
I'm not sure this is necessary since we're not running in shared JVM mode but better safe
Switch to the JNI mode to for imporved performance.