private void CleanupInternal() { if (_windowsIdentity != null) { _windowsIdentity.Dispose(); _windowsIdentity = null; } } }