Issue with closing ContextMenu programatically

If the ContextMenu is closed programmatically (by invoking close() method), it will not get opened when the target is clicked next time. Looks like a bug?