[JENKINS-14529] Permit JMX remote monitoring when daemonized, by closing down the original server before forking.