public void Stop() { _taskManager.Stop(); PluginManager.Stop(); RoutineManager.Stop(); PlayerMoverManager.Stop(); // When the bot is stopped, we want to remove the process hook manager. LokiPoe.ProcessHookManager.Disable(); // Cleanup the coroutine. if (_coroutine != null) { _coroutine.Dispose(); _coroutine = null; } }