Clean callback to update licenses

- return result
- several retries
- raise an error with text if needed
- fix pb when executing locally