don't we need an `error` handler for the `writeStream` as well?