Retry S3 uploads if they fail. Fixes #10