def sigint(self) -> None:
if self.stop_attempts < <NUM_LIT:1>:<EOL><INDENT>Log.info('<STR_LIT>')<EOL>self.stop_attempts += <NUM_LIT:1><EOL>self.terminate()<EOL><DEDENT>elif self.stop_attempts < <NUM_LIT:2>:<EOL><INDENT>Log.info('<STR_LIT>')<EOL>self.stop_attempts += <NUM_LIT:1><EOL>self.terminate(force=True)<EOL><DEDENT>else:<EOL><INDENT>Log.info('<STR_LIT>')<EOL>self.loop.stop()<EOL><DEDENT>
Handle the user pressing Ctrl-C by stopping tasks nicely at first,
        then forcibly upon further presses.