@Fox Yes, but I couldn't find it, we can only choose what to do when a certain line gives an error, but the error can occur on any line. I want to run a command when the complete script gives an error?
Seems to be a bug, if you have tunneling enabled it leaks your ip and if you disable tunneling you can't continue to click to next page on some urls, seems to be a bug.
Edit : After digging further i found the problem . I had selected "ON" in the Sandbox option in my 2captcha account. This was giving me the error
Now it works