It looks like it may be possible for the leave command to mess up if the teams are already full. Should test and fix if needed.