That is why you want a space program...I just watched that movie knowing by nicolas cage ( I spelled it wrong sue me) anyways its a good movie to watch after reading this, but I think the possibility of a solar flare from the sun whipping us out is a little far fetched.
if the world is gonna end, its gonna end on our own terms, not from some comet smashing into earth, not cause of some solar flare, not cause of another intelligent life form with super weapons is gonna take us over, but because of the rate of pollution we humans are producing the earth will never recover from it at one point.