diff -ur curl-7.50.3.old/lib/multi.c curl-7.50.3/lib/multi.c
--- curl-7.50.3.old/lib/multi.c	2016-09-06 23:25:06.000000000 +0200
+++ curl-7.50.3/lib/multi.c	2016-10-13 11:54:00.262453808 +0200
@@ -2168,6 +2168,7 @@
     conn->data->easy_conn = NULL; /* clear the easy handle's connection
                                      pointer */
     /* This will remove the connection from the cache */
+    connclose(conn, "Multi is shutting down");
     (void)Curl_disconnect(conn, FALSE);
     sigpipe_restore(&pipe_st);
 
