Switched to sorted sets for keeping track of dead sockets.