Run shutdown hook in settings page