sleep for 5 seconds and retry in case the server responded with error