diff --git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive.c
index bffc9da..37e8667 100644
--- a/src/openvpnserv/interactive.c
+++ b/src/openvpnserv/interactive.c
@@ -4087,6 +4087,16 @@
         {
             /* Client connected, spawn a worker thread for it */
             HANDLE next_pipe = CreateClientPipeInstance();
+            if (next_pipe == INVALID_HANDLE_VALUE)
+            {
+                /*
+                 * Drop the client and keep listening on this instance. Handing
+                 * it over would leave no instance to listen on.
+                 */
+                DisconnectNamedPipe(pipe);
+                ResetOverlapped(&overlapped);
+                continue;
+            }
 
             /* Avoid exceeding WaitForMultipleObjects MAXIMUM_WAIT_OBJECTS */
             if (handle_count + 1 > MAXIMUM_WAIT_OBJECTS)
