Well edit it some more.

change the finish window code to have a time out applied
WinWaitActive ( "title", "text", 60 ) ; 1 min till time out
If WinExist ( "title" ) then WinActivate ( "title" ) ; This gives focus...if focus was the problem
double check commands...but it should be changed to some thing like that.
I know this isn't posted in the thread any more...but all my scripts are only tested by me in windows...I have never tested unattended. Tho few have ever reported problems...hehe but problems have came up all the same.
If that fixes the issue let me know I'll edit the script to reflect the changes.