code: def disconnect(self, receipt=None, headers=None, **keyword_headers):
          
          Protocol11.disconnect(self, receipt, headers, **keyword_headers)
          self.transport.stop()
docs: Call the protocol disconnection, and then stop the transport itself.
  
          :param str receipt: the receipt to use with the disconnect
          :param dict headers: a map of any additional headers to send with the disconnection
          :param keyword_headers: any additional headers to send with the disconnection