Registering PID file to be deleted on JVM exit

I hope this is the right place to set this.

------------

I have signed the CLA.