Improved logging; stop jmx on shutdown