diff --git a/docker/transport/basehttpadapter.py b/docker/transport/basehttpadapter.py
index <HASH>..<HASH> 100644
--- a/docker/transport/basehttpadapter.py
+++ b/docker/transport/basehttpadapter.py
@@ -3,4 +3,6 @@ import requests.adapters
 
 class BaseHTTPAdapter(requests.adapters.HTTPAdapter):
     def close(self):
-        self.pools.clear()
+        super(BaseHTTPAdapter, self).close()
+        if hasattr(self, 'pools'):
+            self.pools.clear()
Fix BaseHTTPAdapter for the SSL case