Handle EOFError