[OnDemand] fix EndOfFile exit.