close asyncore.dispatcher on EOF
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 9341bf9..52c392c 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -529,6 +529,7 @@
                         self.send(str(data, 'ASCII', 'strict').lower().encode('ASCII', 'strict'))
 
                 def handle_close(self):
+                    self.close()
                     if support.verbose:
                         sys.stdout.write(" server:  closed connection %s\n" % self.socket)