public void Unload() { SaveSettings(); Library.SaveToDatabase(); LoopLibrary.SaveToCache(); BassPlayer.Dispose(); MidiManager.Dispose(); }