Here's what the logger has to say after I start one of my scripts. After "Script Started: Jack's Tree Chopper" the bot began to head towards the botting area. At this point, I simulated a disconnect by disconnecting my computer from wifi. Afterwards, the autologin tries to log in but gets "Error Connecting to server". Where you see the "Starting 20 second sleep" after that is where I usually have a sleep that lasts 1.5-2.5 minutes, but for troubleshooting purposes I shortened it down to 20 seconds. During that 20 second break, I re-connected my computer to wifi so that the account would be able to log in again. Instead, the bot just stops. Attached is an image of my logger and an image of the code that tests for the error message as well as does the sleeping. I test for connection error numbers: -2, 5, 8, 9, 23, 25.
Thank you for your time and help.