Add retry for requests with a delay before trying again