code: def stop_handling_end_signal(self):
          
          try:
              signal.signal(signal.SIGTERM, signal.SIG_DFL)
              signal.signal(signal.SIGINT, signal.SIG_DFL)
          except ValueError:
              self.log('Signals cannot be caught in a Thread', level='warning')
docs: Stop handling the SIGINT and SIGTERM signals