iostream was removed from socket