Hmmm, trouble...
Script was running fine for over 1 hour.
So I had to eat and when I came back the bot was logged out.
I logged in and I was standing in Lumb (I died).
Problem is I don't know what happend so can't tell you if there is something wrong with the script.
But I thought lets post it and maybe someone has a solution.