If CloneCommand base object has repository, close it at end of execute()