What about calling Menus.closeAll() here instead of closing these two individual context menus?  Are there cases where we *wouldn't* want the context menus and code hints to close just before executing a command?