Panel: panelclose event does not work

altered _on and added another test

Fixes gh-7058