add delay when retrying sql due to communication error