The structure has asset safety unless it goes unfueled for a week. If offlined from armor loss, it will not be a week before it becomes vulnerable again so the structure will not be abandoned. If it dies when it becomes vulnerable again, asset safety takes effect. If it does not die, the modules will attempt to online automatically as soon as it repairs resetting the week waiting period before anyone can lock the modules down again.
You can manually trigger asset safety at any time, even in a full power structure you have access to.