simplify requirement for finalisation

by using static QCoreApplication::exec there is no need
to clear connections made in QGuiApplication::exec.