Close the repository.