Add error handling for ForEach's.