just a check if the file ended unexpectedly.