Added timer on server exit to wait a bit for new clients.
Don't remove the socket until the registry is closed to avoid a race.

diff --git a/server/select.c b/server/select.c
index 065c456..24cbdb6 100644
--- a/server/select.c
+++ b/server/select.c
@@ -274,6 +274,7 @@
                     break;
                 }
             }
+            if (!active_users) break;  /* last user removed by a timeout */
         }
 
         sigprocmask( SIG_UNBLOCK, &sigset, NULL );