def close(self):
if hasattr(self, "<STR_LIT>"):<EOL><INDENT>self.thread._exit = True<EOL>self.thread.join(<NUM_LIT:1000>)<EOL><DEDENT>if self._conn is not None:<EOL><INDENT>self._conn.close()<EOL><DEDENT>
Close the current connection and terminate the agent
Should be called manually