Close menu bar menu with applescript
You almost had it.  This works for me.

tell application "System Events" to tell process "SystemUIServer"
    tell (menu bar item 1 of menu bar 1 where description is "system sound volume")
        click
        delay 1
        key code 53
    end tell
end tell