code: def terminate(self):
          
          if self._closed:
              return
          self._check_init()
          for ch in self._holders:
              ch.terminate()
          self._closed = True
docs: Terminate all connections in the pool.