catch more precise exception type in RecentFileSubmenu