Modified the priority for AM's shutdown hook