protected override void Dispose(bool disposing) { if (isDisposed) return; if (disposing) { Flush(); } isDisposed = true; }