update the first_known_offset when closing the file without having read the offset through the offset_thread