destroy app cid when stopping