Handle EOF.