code: def handle_shutdown_signal(self, *_):
          
          if self.shutting_down:
              self.logger.warning('Received double interrupt, forcing shutdown')
              sys.exit(1)
          else:
              self.logger.warning('Received interrupt, initiating shutdown')
              self.shutting_down = True
docs: Handles the reception of a shutdown signal.