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