Added remove() to remove sockets without any message.