Proper error handling of cache set() failure