Qt UI: fix SIGABRT during closing Tic-Tac-Toe QML widget (issue 1312)