Is there a way to execute a cleanup function if a workflow fails?

Is there a way to execute a cleanup function if a workflow fails?
Was this page helpful?