Cleaner handling for EOF from read streams.