I really hope we don't go extinct before some form of intelligence (preferably friendly and, even if artificial, descended from our human spirit) leaves this planet to explore the beyond.
Like you, I sometimes worry we've got a lot of challenges and obstacles left to avoid before we finish the race.
Here's my personal list of "most likely" existential threats from most to least likely (in my opinion)
1. Vulnerable World
2. Nuclear MAD
3. Geopolitical strife and decay
4. Naturally arising biological agent (independent of #1)
5. Peak energy / resource exhaustion
6. Hostile AGI
7. Runaway climate/ecosystem breakdown
8. Geological or cosmological event
9. Aliens
Vulnerable world seems both incredibly plausible and impossible to contain. As we work up the technological capability ladder, we'll gain access to tools and delivery mechanisms that can theoretically kill all humans. But the scary part is that these tools will potentially be accessible to hobbyists without government backing.
I do expect the ordering of this list shuffle around in my lifetime. Not necessarily in response to bad events, but more likely our technological progress. I'm still ranking AI low, but who knows what future developments might bring. Deep learning sort of took us all by surprise.