Don't know what blockmaker you use, but I believe it shows it manually again and has some variable counting if it's open or not, cause normally menus should get closed if you die or get spawned. Somehow you can test something smiliar as:
PHP Code:
new menu, newmenu;
if( player_menu_info( index, menu, newmenu ) )
{
menu_cancel( index );
client_cmd( index, "slot1" );
}