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