private void HostWindow_OnClosing(object sender, CancelEventArgs e) { taskbarIcon.Dispose(); taskbarIcon = null; }