This article builds on a previous tutorial by assuming that, when dealing with an agent, things will go wrong, and shows how to recover gracefully when they do.