deal with failures gracefully.