How many times do you have it set to try to reconnect?
The screen-shot shows 19 attempts.
According to the help file
The on CONNECTFAIL event uses the same as above and triggers when a connection attempt (including all retries) has failed.
I have bolded the part that I think might be relevant to your situation, though it's not bolded in the help file.