So far the workflow cannot cope with errors. By default, when a state fails, the whole execution fails. Errors can come from:
Step Functions has two tools for this: Retry runs a failed state again, Catch moves to another state when a specific error happens.