public override void Close() { if (_writer != null) { try { _writer.Flush(); } finally { try { _writer.Dispose(); } finally { _writer = null; } } } }