Close DB after UI because GameWindow::~GameWindow calls Qp::save