@echo off
title GateFlow Client
curl -s -X POST http://127.0.0.1:8080/api/quit >nul 2>&1
timeout /t 2 /nobreak >nul
taskkill /f /im GateFlow.exe >nul 2>&1
timeout /t 1 /nobreak >nul
start "" "%~dp0GateFlow.exe"