Why Automated Workflows Fail and How to Ensure Reliability