location error and retry handling