Moved the initialization of QCoreApplication object above CommandRunner object in main and renamed CommandRunner::exec to CommandRunner:start