Add stack trace exception when saving to cache fails.