I faced a similar situation with a Tk application,so I introduced a refresh button that checks if the pop-up menu already exists and destroys it before invoking another pop-up menu.. Maybe you would prefer to:
look at where the pop-up menus are called from.
destroy any existing pop-menus from these places before they invoke their specific pop-menu.
Excellence is an Endeavor of Persistence.
Chance Favors a Prepared Mind.