Feature #82 : Allowing the relaunch of the migration in  case of error
Closing correctly the repository and the ThreadPool