So many different things could go wrong--asteroids the most likely. The only real protection is to develop a space program that sets up self sustaining human colonies on other planets and, long term, outside the solar system. If the human race spreads out enough, extinction events are much less likely.
Of course, Al and his buds regard humans as a cancer on the Earth. The last thing they want is to have us ruin the rest of the Galaxy also.