Add callback for when the context menu is closed

Added a callback for when the context menu is closed in case there is a situation where something is updated by the `context-menu` callback function, and needs to be reset/removed/whatever when the context menu is then closed.

Example use case: shared context menu between multiple items, setting the "current" item based on context menu opening, and clearing that item when the context menu is subsequently closed.