Add retry logic to closing S3 multipart uploads.