@Override
    public void destroy()
    {
        if (objectName != null) {
            JMXManager.tryUnregister(objectName);
            objectName = null;
        }

        if ( executor != null )
        {
            executor.shutdown();
            executor = null;
        }
    }
Destroys the module, by shutting down the thread pool that is being used to process archiving tasks.

No new archive tasks will be accepted any longer, although previously scheduled tasks can continue
to be processed.
xmppserver/src/main/java/org/jivesoftware/openfire/archive/ArchiveManager.java