implemented RepositoryProvider
added engine shutdown