Adding destroy handler