code: public void shutdown() throws Throwable
     {
        if (disp != null)
        {
           try
           {
              disp.stop();
           }
           catch (Throwable t)
           {
              if (trace)
                 log.tracef("Throwable during disp.stop(): %s", t.getMessage());
           }
  
           disp = null;
        }
  
        if (channel != null)
        {
           try
           {
              channel.disconnect();
           }
           catch (Throwable t)
           {
              if (trace)
                 log.tracef("Throwable during channel.disconnect(): %s", t.getMessage());
           }
  
           try
           {
              channel.close();
           }
           catch (Throwable t)
           {
              if (trace)
                 log.tracef("Throwable during channel.close(): %s", t.getMessage());
           }
  
           channel = null;
        }
     }
docs: {@inheritDoc}