Qatar out after group stage defeat