code: def disconnect
        channels.each do |chan|
          chan.close
        end
  
        connections.each do |conn|
          conn.disconnect
        end
      end
docs: Close all channels and then disconnect all the connections.
  
   @return []
   @api public