Reset variables on quit or restart