line_reader returns null on end