private void Output_OnError(object sender, ChannelErrorEventArgs e) { logger?.LogError(e.Error, "Fault in module output channel."); OutputChannel.CloseAsync().GetAwaiter(); }