code: def _self_destruct(self):
          
          # This will give parent process 15 seconds to reset.
          self._kill = threading.Timer(15, lambda: os._exit(0))
          self._kill.start()
docs: Auto quit exec if parent process failed