Quassel::registerQuitHandler([this]() {
connect(_core.get(), SIGNAL(shutdownComplete()), this, SLOT(onShutdownComplete()));
_core->shutdown();
Quassel::registerQuitHandler([this]() {
connect(_core.get(), SIGNAL(shutdownComplete()), this, SLOT(onShutdownComplete()));
_core->shutdown();