partial revert: use .end() again to close a writable stream

(I misread, end() is only equivalent to destroySoon() -
calling destroy() could drop unwritten data)