Hi, basically it's a little python tool that retrieves data from a game and sends it to a google sheet every second, except that I'd like it to send a last request in disconnection mode when you close the tool.
So I've used an atexit but it doesn't work when I close my tool. It works when you press ctrl+c but not when you close the tool with the cross.