Added maximum number of tries for attempting to stream from S3.