Ignore exceptions while storing the cache