def stop(self, msg=None):
if not self.stop_run.is_set():<EOL><INDENT>if msg:<EOL><INDENT>logging.info('<STR_LIT>', msg, ('<STR_LIT>' if msg[-<NUM_LIT:1>] in punctuation else '<STR_LIT:.>'))<EOL><DEDENT>else:<EOL><INDENT>logging.info('<STR_LIT>')<EOL><DEDENT><DEDENT>self.stop_run.set()<EOL>
Stopping a run. Control for loops. Gentle stop/abort.

        This event should provide a more gentle abort. The run should stop ASAP but the run is still considered complete.