Adding logging of errors and hopefully keeping the bot from crashing. Hopefully.