Add an exponential backoff in case of error 500

When time is over 1000, log the error