Closes the repository by closing the underlying storage.
The reference to the storage becomes null after this call.