While an actual fix for #3 is still pending, this will at least cause the bot to halt more gracefully when the error is encountered.