def close(self):
try:<EOL><INDENT>self._socket.sendall('<STR_LIT>')<EOL><DEDENT>except socket.error:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>self._socket.close()<EOL><DEDENT>except socket.error:<EOL><INDENT>pass<EOL><DEDENT>
Close connection to server.