AOW - Control failing workflow process (For example, do not change anything on fail)

Hi,

I have a workflow with two tasks: Change registry information, and send email.

When I’ve created it, they try to send all emails. But some of them are unsent. The workflow mark them as “failed” on process audit.

The question: There’s any method to check if the workflow fails, and then, do another things or not do anything?