code: def close(self):
          
          if self._closing or self._handle.closed:
              return
          self._closing = True
          self._write_backlog.append([b'', False])
          self._process_write_backlog()
docs: Cleanly shut down the SSL protocol and close the transport.