onClosed

A callback to call when frame is closed.