code: @Override
  	public void stop()
      {
          super.stop();
          if (connectorServer != null)
          {
              try
              {
                  connectorServer.stop();
              }
              catch (Exception e)
              {
                  log.error("Could not stop JMX connector server",e);
              }
              finally
              {
              	connectorServer = null;
              }
          }
          if (registry != null)
          {
  	        try
  	        {
  	        	String jndiName = "jmxconnector-"+agentName;
  	            registry.unbind(jndiName);
  	        }
  	        catch (Exception e)
  	        {
  	        	// Ignore
  	        }
  	        finally
  	        {
  	        	registry = null;
  	        }
          }
          if (mBeanServerSocketFactory != null)
          {
          	try
              {
          		mBeanServerSocketFactory.close();
              }
          	catch (Exception e)
              {
                  log.error("Could not close MBeans server socket factory",e);
              }
          	finally
              {
          		mBeanServerSocketFactory = null;
              }
          }
      }
docs: /*
  (non-Javadoc)
  @see net.timewalker.ffmq4.jmx.JMXAgent#stop()