Destroying various UI elements after window unload.

latest commit 1c270268bf
Benzamin Basher authored