Handle deleting pages/layers with bookmarks on them