Add failure processing for doing map/reduce operations