destroy
Emitted when an object is destroyed. An object may be destroyed by calling the destroy() method or by destroying its top level parent.
When a user clicks on the X in the upper right hand corner of a window, the "destroy" will be emitted and the window will be destroyed along with all of its contents.
Callback function