What happens when you're in a structure when it's destroyed?

Say you’re docked in an athanor, what happens the instant the structure pops? Do you get forcibly undocked?

Affirmative. Although, I am not sure where, precisely, you end up. It might be at the center of the structure.