public void Dispose() { try { if ( writer != null ) writer.Close(); if ( log != null ) log.Close(); } catch { } _isDisposed = true; }