Remove all use of API deprecated in 10.9
Destroy window hax elements if their application hax element is destroyed.

Appears to fix a crash that was only visible by the cryptic error
message "Remove notification Error: -25204".
The added logging also provides some interesting insight into how
different applications invalidate their accessibility objects. Xcode
destroys its application object when you open a find-in-file dialog.
Sublime Text invalidates its window objects when you close a window.