always closing a S3Object when iterating