Close all QT windows to avoid edge cases.