Fixed bug where bot tried to join to early
Fixed problem with exit code