code: def add_signal_handlers(self):
          
          try:
              self.loop.add_signal_handler(signal.SIGHUP, self.SIGHUP)
          except (RuntimeError, AttributeError):  # pragma: no cover
              # windows
              pass
          try:
              self.loop.add_signal_handler(signal.SIGINT, self.SIGINT)
          except (RuntimeError, NotImplementedError):  # pragma: no cover
              # annaconda
              pass
docs: Register handlers for UNIX signals (SIGHUP/SIGINT)