When using libyui threads, destroy qApp in the right one.