Close resources owned by subclass before calling super().close().
diff --git a/Lib/selectors.py b/Lib/selectors.py
index 3e6c2ad..3638e85 100644
--- a/Lib/selectors.py
+++ b/Lib/selectors.py
@@ -351,8 +351,8 @@
             return ready
 
         def close(self):
-            super().close()
             self._epoll.close()
+            super().close()
 
 
 if hasattr(select, 'kqueue'):
@@ -414,8 +414,8 @@
             return ready
 
         def close(self):
-            super().close()
             self._kqueue.close()
+            super().close()
 
 
 # Choose the best implementation: roughly, epoll|kqueue > poll > select.