Extracted _do_housekeeping() and _save_progress() from LogReader._ensure_file_is_good().