core: give users chance to quit for upgrade [GH-3212]