make cfold exit properly