catch if reduce fun throws