Add debugging information when panel.destroy throws.