Fix crash in /leave command.

Fixes #88.
Fix crash when sharing screenshot while not ingame.

Fixes #90.