maybe you can hook the click on the OK button from the deconnexion confirmation? or just the "show this control" to leave time to your commands to execute.... but i dunno how to /zgoo mouse this thing, good luck
baaah you can /zgoo mouse the "log out" line in the Esc menu for a start.
is it for something you can't do at next startup at all, or update during the session? i can't find any example of it being strictly necessary... do you mind sharing some spoilers please? <-- insert pic of puss in boots
reedit mmmh maybe saving your location for other toons to be able to check it?
re reedit : maybe saving your last bag content without having to use on_single_slot_update?
(can we make a game of this? the one who guesses what you are trying to do get a free copy of your addon... hmm or something like that)