You have attempted to clear an active menu.
Use DEACTIVATE POPUP before clearing or releasing the menu.