public static void Quit() { Engine.TickWorkQueue.Enqueue(() => { dynamic game = new ReflectionObject(Reflection.GetTypePropertyValue <dynamic>("ClassicUO.Client", "Game", null)); game.Exit(); }); }