Make phase4 handle EOF itself, so EOF handling doesn't have to be duplicated in each phase4 consumer.