Made Xml stream target disposable.