Hi, Thanks for all your efforts.
I have tested your modified code, however it still disconnect if I increase the “pause” to 40 sec (40000). It works great with 4 sec pause. I am in doubt if you had no issues with 400 sec as in your comment?
Again thanks!