Simplify writableStream.abort() algorithm by using transform idiom