drop connections which are dead

fixes #6941
unnecessary braces `(c.socket.Connected)`