public void destroy()
    {
        if ( executorService != null )
        {
            executorService.shutdown();
        }

        synchronized ( watchedStores )
        {
            if ( storeWatcher != null )
            {
                try
                {
                    storeWatcher.close();
                }
                catch ( IOException e )
                {
                    Log.warn( "Unable to close the watcherservice that is watching for file system changes to certificate stores.", e );
                }
            }
        }
    }
Shuts down this watcher, releasing all resources.
xmppserver/src/main/java/org/jivesoftware/openfire/keystore/CertificateStoreWatcher.java