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