Add save prompt when closing modified doc via window manager