fix; properly close pass through stream