Emit 'end' when piping.