How to manage AI execution errors