use correct 'finish' event on writable stream