TCP/IP Botting Not Getting XP

So I’ve used both the D2BotLead and the TcpIpHost one as well and both of them just end the game somehow rather than saving and exiting. Unfortunately, while this gives me the items it found, it doesn’t gain any of the experience and it just resets to what it was when my character entered the previous game. I’m trying to figure out if quit or exit are defined somewhere to see if I could force a function that hits esc and then the save and exit option, but I’m not quite savvy enough for that. Any thoughts?