'Disposes of any internal state.
Currently, this closes the PoolManager and any active ProxyManager,
which closes any pooled connections.'

def close(self):

    self.poolmanager.clear()
    for proxy in self.proxy_manager.values():
        proxy.clear()
