Destroy method for top level widget.