- Moved emergency terminal restore registration to the TUI terminal initialization logic. - Ensured terminal restoration triggers correctly on fatal exits by moving registration out of a side-effect-heavy barrel module. - Added a registration guard to prevent redundant postmortem handler attachments.