code: def shutdown(self, block=False):
          
          x = self.executor.shutdown(wait=block)
          logger.debug("Done with executor shutdown")
          return x
docs: Shutdown the ThreadPool.
  
          Kwargs:
              - block (bool): To block for confirmations or not