The socket has to be removed from the list when connection ends