Track connection status based on socket.io disconnect event