diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index a757c47366d037c783bdbc63094c78c5e5cbd359..1434775cff312009d39b77d9b158745fcb2e0563 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -657,7 +657,7 @@ static void close_connections(void)
   {
     DBUG_PRINT("quit",("Informing thread %ld that it's time to die",
 		       tmp->thread_id));
-    tmp->killed=1;
+    close_connection(tmp, 0, 1);  
     if (tmp->mysys_var)
     {
       tmp->mysys_var->abort=1;