/// <inheritdoc/>
 public Task StopAsync(CancellationToken cancellationToken)
 {
     _collector?.Shutdown();
     _collector = null;
     return(Task.CompletedTask);
 }