Added automatic closing delegation with transformed streams