private void OnDestroyed(object sender, EventArgs e)
 {
     try
     {
         panel.Cleanup();
     }
     catch (Exception err)
     {
         ShowError(err);
     }
 }