Yorkshire ended a bleak Yorkshire Bank 40 season with their ninth defeat in 12 matches - however victory by four wickets with seven balls remaining for Glamorgan at Headingley ensured the Welsh county's passage into the semi-finals of the competition.