Chain Repo into tree and terminate correctly