shutdown repository if it fails to startup