mm/hmm: HMM should have a callback before MM is destroyed