Test shutdown hook added