code: @Override
      public void shutdown()
      {
          m_stopCollector = true;
          if( m_collectorThread != null ) m_collectorThread.interrupt();
  
          try
          {
              //
              //  Remove MBean
              //
              if( m_mbeanServer != null && m_mbeanServer.isRegistered(getJMXName()) )
                  m_mbeanServer.unregisterMBean(getJMXName());
          }
          catch (Exception e)
          {
              log.error("Failed to unregister MBean", e);
          }
      }
docs: Shuts down the collector thread and removes the JMX bean
  if it is registered.  It is <i>very</i> important to call this
  or else you risk a memory leak.