Run hooks for existing json files. Better shutdown behavior.