Nuclear war or climate changing cataclysmic asteroid impacts could definitely wipe it all out. Unless we figure out a way to divert it then a near extinction level asteroid impact cataclysm is basically a certainty given enough time. Maybe we’ll be in space by then though.