prevent unnecessary logging when looking at headers of files where hitting the end of the file is expected.