catch errors in parMapM