Fix issue with reseting streams when no transform occurs - esp in the end of the process