write-stream: emit end

Any objections or other notes?