public virtual Task DisposeAsync(RunSummary result, IMessageBus messageBus) { if (result.Failed > 0) { _log.Flush(); } Dispose(); return(Task.CompletedTask); }