cleanup of dsm de-registration code including release() and dsm_exit()