Bugfix: QThread destroyed before thread finished