Clean up CDM.