protected override void End() { try { if (base.LastError != null) { ProtocolLog.LogCycleFailure(this.loggingComponent, this.loggingContext, "The sync cycle completed with error", base.LastError); } else { ProtocolLog.LogCycleSuccess(this.loggingComponent, this.loggingContext, "The sync cycle completed successfully"); } this.SafeCloseLoggingStream(); } finally { base.End(); } }