code: def close(self, timeout=None, callback=None):
          
          if self.transport is not None:
              self.flush(timeout=timeout, callback=callback)
              self.transport.kill()
              self.transport = None
docs: Close the client and shut down the transport. Arguments have the same
          semantics as `self.flush()`.