code: def _setup_signal_handler(self):
          
          signal.signal(signal.SIGTERM, self._signal_handler)
          signal.signal(signal.SIGINT, self._signal_handler)
          signal.signal(signal.SIGQUIT, self._signal_handler)
docs: Register signal handlers