Added endSync method for destination repository.