Extinction of genotypes in closed populations