Implemented leave team functionality; if PoC leaves, new PoC is assigned; if last member leaves, team is destroyed.