private void OnError(HostErrorEventArgs e) { var er = Error; if (er != null) er(this, e); // restart host _host.Dispose(); Start(); }