Handling errors with StepFunctions SNS SDK integration