public void stop() {
        Log.info( "Stopping instance" );
        if (workerThreadPoolObjectName != null) {
            JMXManager.getInstance().tryUnregister(workerThreadPoolObjectName);
            workerThreadPoolObjectName = null;
        }
        inactivityTask.cancel();
        for (HttpSession session : sessionMap.values()) {
            Log.debug( "Closing as session manager instance is being stopped: {}", session );
            session.close();
        }
        sessionMap.clear();
        stanzaWorkerPool.shutdown();
    }
Stops any services and cleans up any resources used by the HttpSessionManager.
xmppserver/src/main/java/org/jivesoftware/openfire/http/HttpSessionManager.java