Fixed a segfault that could happen if the Widgets are destroyed after the Gui. fixes #12