When using the "Cancel" option, the script stalls making me relog to remove the chat window out of the way and be able to play. ("end" instead of a "close"?)
Anyway, since 2 images are worthy that a thousand of words (Some times at least..):


PCManiac