Fix typos and misuse.
Add some logs.
Fix crash.

Check if 'team' exists when 'queue/exit'.