check EOFException