Fix crash when attempting to broadcast to dead sockets