Add cancel commandtype.