Issue #22065: Menus, unlike Menubottons, do not have a state option.
Since a new demo can now be loaded while one is running,
adjust loadfile to do the same cleanup as stopIt.
Merge with 3.4
Issue #22065: Remove the now unsed configGUI menu parameter and arguments.
Merge with 3.4