protected override void OnClosed(EventArgs e) { try { midiPlayer.OnClosedOperations(); } catch (NullReferenceException ex) { } base.OnClosed(e); }