public override void Close() { foreach (var stream in streams) { stream.Close(); stream.Dispose(); } streams.Clear(); base.Close(); }