Added better error handling than just throwing an excepton (which crashed the bot).
Made error handling notify the user.