Differentiate socket closed from socket error in recv_line.