@Override
    public void stop() {
        super.stop();

        TaskEngine.getInstance().cancelScheduledTask(serverCleanupTask);

        localComponentRoutingTable.stop();
        localServerRoutingTable.stop();
        localClientRoutingTable.stop();

        try
        {
            // Purge our own components from the cache for the benefit of other cluster nodes.
            CacheUtil.removeValueFromMultiValuedCache( componentsCache, XMPPServer.getInstance().getNodeID() );
        }
        catch ( Exception e )
        {
            Log.warn( "An exception occurred while trying to remove locally connected external components from the clustered cache. Other cluster nodes might continue to see our external components, even though we this instance is stopping.", e );
        }
    }
Remove local or remote component route.

@param route the route of the component to be removed.
@param nodeID The node to which the to-be-removed component was connected to.
xmppserver/src/main/java/org/jivesoftware/openfire/spi/RoutingTableImpl.java