Fixed and updated restarting bots

Program now checks up on threads, if the thread has failed, a restart is called on the bot

Minor thread changes