add shutdown method to repository manager