WindowActionMenu: unset window and stop async events on dispose

Finalize function can be never called here, so it's better to do this
when the widget gets destroyed.