Handle chatbox errors more gracefully