public void Terminate()
        {
            _uiThread.MustBeCalledFromUIThread();
            var shell = this.GetService(typeof(SVsShell)) as IVsShell;

            if (shell != null)
            {
                shell.UnadviseShellPropertyChanges(shellCookie);
                shellCookie = 0;
            }
        }