Rarity in mass extinctions and the future of ecosystems