protected void Application_End(object sender, EventArgs e) { if (_host != null) { _host.Dispose(); _host = null; } }