handle output on stream end, remove looking for EOF since we never see it