Glad you got it sorted! Yeah, the script will walk to a safe place ~2minutes before a break starts so that it can successfully log out.
That is being logged from the client; not sure what causes it. Does it interfere with the script?
Also, to prevent yourself logging out, you can always use random movements with a slightly higher frequency to prevent the logout timer passing the idle threshold.
Cheers!
apa