handler for "Quit" menu item (closes current browser tab)