fix retries code
Can't add elements if iterating over collection, so make a copy
Log which split actually failed
Merge pull request #6 from victori/master

Fixed the retries code