code: def close(self, reply_code=0, reply_text='', class_id=0, method_id=0,
                disconnect=False):
          '''
          Close this connection.
          '''
          self._close_info = {
              'reply_code': reply_code,
              'reply_text': reply_text,
              'class_id': class_id,
              'method_id': method_id
          }
          if disconnect:
              self._closed = True
              self.disconnect()
              self._callback_close()
          else:
              self._channels[0].close(f close(self, reply_code=0, reply_text='', class_id=0, method_id=0,
                disconnect=False):
          '''
          Close this connection.
          '''
          self._close_info = {
              'reply_code': reply_code,
              'reply_text': reply_text,
              'class_id': class_id,
              'method_id': method_id
          }
          if disconnect:
              self._closed = True
              self.disconnect()
              self._callback_close()
          else:
              self._channels[0].close()
docs: Close this connection.