disable repeat attempts to leave groups on error
disable immediately (and re-enable on re-render)
minor comment changes
Merge pull request #3267 from sathomas/leaveGroups

Leaving Multiple Groups at Once Can Result in Intermediate State
fixed closure error