use `domain` to handle transform stream errors