AS7-4492 Use AS-specific shutdown hooks