Now the repository shutdown is performed within a finally block so that is will be always done whatever the result of the migration into the JCR
Save the changes in the session when those changes are in pending to be saved at the end of a component migration into the JCR
When migrating the versioned documents into the JCR, the clean up of the old and deprecated location of versioned documents are removed at the end of the process and no more for each of them