The source project of this merge request has been removed.
Fix catastrophic crash if unable to reset caret on menu destruction
During destruction of the menu tree, if set caret position fails when resetting the caret to the old position (ie illegal window handle as the window has been deleted) then destroying the menu tree also fails with catastrophic results. Absorb error condition so that the tree tidies up quietly.