code: def terminate(self):
          
  
          self.close()
  
          for conn in list(self._used):
              conn.close()
              self._terminated.add(conn)
  
          self._used.clear()
docs: Terminate pool.
  
          Close pool with instantly closing all acquired connections also.