there is not a single thing that could wipe out a deep sea habitat that wouldnt also wipe any space colonies. but i dont see anybody arguing for that, despite being far more achievable and practical. also, there is no feasible way for space colonies to be self sufficient anywhere in the near future, so wiping out earth also wipes out space colonies relying on it for supplies. this argument aboOt survivability is absurd.
a rogue planet hitting this one would. i would expect a space faring race to want to move not only to the outskirts of the solar system, but possible attempt venturing to a new one. perhaps multiples.
but go ahead, keep thinking small for some reason. technology never advances dontcha know.