Add a retry-attempts option.
Merge pull request #28 from antoox/add-retry-attempts-option

Add a retry-attempts option.