private static void Shutdown() { logger.Info(() => "Shutdown ..."); Console.WriteLine("Shutdown..."); shareRelay?.Stop(); shareRecorder?.Stop(); statsRecorder?.Stop(); payoutManager?.Stop(); shareReceiver?.Stop(); }