hook into destroy sequence