file-menu:close-on-demand in frame:standard-menus<%>

The menu item's on-demand method calls this method