def close(self):
self._connected = False<EOL>self.buf = b'<STR_LIT>'<EOL>if self.sock is not None:<EOL><INDENT>self.sock.close()<EOL><DEDENT>
Closes the socket
Called internally when Exceptions are raised