cec: fixed crash when replacing handlers - std::map::clear() already calls the destru...