Do not de-parent a widget before you close it! Parent-child relationship needed for Qt's internal garbage collection