code: def shutdown(self):
          
          self.socket.shutdown()
  
          if scoop:
              if scoop.DEBUG:
                  from scoop import _debug
                  _debug.writeWorkerDebug(
                      scoop._control.debug_stats,
                      scoop._control.QueueLength,
                  )
docs: Shutdown the ressources used by the queue