We don't know the size of the last batch, so we still need to handle EOF exception anyway unless we also track the number of objects.