Introduce RepositoryTab; proper tab/repository closing