Handle errors caused at leo_cache correctly