protected override int QueryClose(out bool canClose) { if (_solutionEventsCookie != 0 && _solution != null) _solution.UnadviseSolutionEvents(_solutionEventsCookie); return base.QueryClose(out canClose); }