chatbot/eval: wrap code in try-catch