Disconnect from the socket.

def disconnect(self):
        """Disconnect from the socket."""
        if self.pipeline:
            self._send(*self.pipeline)
        self.transport.close()
        self.transport = self.pipeline = None