I think, the menu of a *main* patch should never be destroyed, without updating the $menu_windowlist variable. Same in .37, but .38 seems to be less forgiving.
hm ... i'm not really familiar with the tcl/tk code ... is it possible to do that from toxy or will i have to do that in pd itself?
cheers ... tim