It might just be me, but every time I see a movie where the Human race is nearly defeated by aliens but in the end defeats them (such as ID4 or WotW), instead of thinking "Oh no, how will the human race recover" I always think "Now we can analyze the alien technology and then start expanding into space"
