Add re-try block for S3 upload