public void Dispose()
 {
     try
     {
         _progressUi.SetValue(_uiMax);
     }
     catch (Exception x)
     {
         _exceptionLogger.LogException(x, s_logger);
     }
 }