leaveTeam method.