Add option to retry resource checkout
Fix leaky retry solution
Fix code review remarks
Merge pull request #7 from loucash/add-option-to-retry-checkout

Add option to retry resource checkout