remove hooks when minor mode is being disabled