code: private synchronized void removeDistributedStatistics()
     {
        if (distributedStatistics != null)
        {
           listeners.remove((NotificationListener)distributedStatistics);
           distributedStatistics.setTransport(null);
           distributedStatistics = null;
        }
     }
docs: Remove distributed statistics