First keep track of which control is showing the ContextMenu by listening to the menu's Popup event and querying for the SourceControl.
Then when you are ready to cancel the popup, do as follows: