Use Plugin.beforeHostMethod to overwrite Panel.hide method.