https://github.com/zeromq/czmq/commit/8f8aa86ec1ecf903a614a26aa9e4dd63ace4ffd1

--- src/zre_msg.c
+++ src/zre_msg.c
@@ -1766,4 +1766,7 @@
     //  @end
 
+#ifdef __WINDOWS__    
+    zsys_shutdown();
+#endif
     printf ("OK\n");
 }
--- src/zyre.c
+++ src/zyre.c
@@ -738,6 +738,9 @@
     zyre_destroy (&node2);
     //  @end
+#ifdef __WINDOWS__    
+    zsys_shutdown();
+#endif
     printf ("OK\n");
 
     // zre_msg, zyre_group, zyre_node and zyre_peer are private classes and
     // symbols are not exported so the tests can't be run from zyre_selftest,
--- src/zyre_group.c
+++ src/zyre_group.c
@@ -171,5 +171,8 @@
     zhash_destroy (&groups);
     zsock_destroy (&mailbox);
+#ifdef __WINDOWS__    
+    zsys_shutdown();
+#endif
     printf ("OK\n");
 }
 
--- src/zyre_node.c
+++ src/zyre_node.c
@@ -1022,4 +1022,7 @@
     zsock_destroy (&pipe);
     //  Node takes ownership of outbox and destroys it
+#ifdef __WINDOWS__    
+    zsys_shutdown();
+#endif
     printf ("OK\n");
 }
--- src/zyre_peer.c
+++ src/zyre_peer.c
@@ -475,4 +475,7 @@
     zsock_destroy (&mailbox);
 
+#ifdef __WINDOWS__    
+    zsys_shutdown();
+#endif
     printf ("OK\n");
 }
