Add sleep in processing thread when there is an upload error.