Panel: panelclose event does not work

fix use of _on

Fixes gh-7058