Fix config not saving on quit