code: def _unbind(self, rmq_server=None):
          
          try:
              self.connections[rmq_server].close()
          except AttributeError:
              pass
  
          self.connections[rmq_server] = None
          self.channels[rmq_server] = None
docs: Close AMQP connection and unset channel