We do have the technology to redirect a potentially extinction-level asteroid, so I don't think it would be all doom and gloom. More like a scramble to launch a redirect mission. (And besides Apophis isn't large enough to cause an extinction event, just destroy a country or two).