Keep bot running after a crash

These are just the fixes created by laggingpyro [here](https://github.com/Jessecar96/SteamBot/pull/453), but rebased onto the latest version of the repo.

I also added a few fixes of my own to his code, since he doesn't seem to be around anymore to accept my pull-request.