def stop(self):
if self.is_running:<EOL><INDENT>log.info('<STR_LIT>')<EOL>self.is_running = False<EOL>self.__class__._INSTANCE = None<EOL>try:<EOL><INDENT>self.thread and self.thread.stop()<EOL><DEDENT>except:<EOL><INDENT>log.error('<STR_LIT>')<EOL>traceback.print_exc()<EOL><DEDENT>self.thread = None<EOL>return True<EOL><DEDENT>
Stop the Runner if it's running.
Called as a classmethod, stop the running instance if any.