Log the exception locally when the API cannot be reached