Better error handling in flows.