window: Implement prompt-on-close-tab for safety