Removed window close button callback for a more common idiom.