/// <summary> /// Safely unloads the API. /// </summary> public void Unload() { this.active = false; Thread.Sleep((int)Settings.RefreshRate); MemoryManager.Unload(); }