protected void OnDeleteEvent(object sender, DeleteEventArgs a) { saveConfig(); softwareKey.Flush(); led_matrix.requestStop(); Application.Quit(); a.RetVal = true; }