You could use old style menus (they have a time argument for how long the menu will show) or you can just set a task to use menu_cancel on a player (the menu will still show, but the menu will not work).
Additionally, instead of menu_cancel you could use:
Code:
show_menu( iPlayer, 0, "^n", 1 );
And it will clear the menu from the player's screen.