code: def restore(self):
          
          signal.signal(signal.SIGINT, self.original_sigint)
          signal.signal(signal.SIGTERM, self.original_sigterm)
          if os.name == 'nt':
              signal.signal(signal.SIGBREAK, self.original_sigbreak)
docs: Restore signal handlers to their original settings.