fix segfault when failing to load config
qcoreapplication doesn't respect ::quit() if it hasn't been started yet, apparently