Ensure client sockets are always closed when the server main loop exits