Fix save on exit raw mode by adding optional arg to toggle()