Changed order of cleanup operations to be more sensible.
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 42c873a..16b3fb6 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -2360,8 +2360,8 @@
                     r = logging.makeLogRecord({'msg': 'testing' })
                     h.handle(r)
             finally:
-                h.close()
                 remover.join()
+                h.close()
                 if os.path.exists(fn):
                     os.unlink(fn)