Monitor the internet connection simultaneously

Hi all,

I have created a automation which is interacting the with different web applications. I have also created a workflow to check the internet connection. But my problem is parallel activity is not actually executing the both workflow simultaneously.
I want to regularly check the internet connection while automation is running and stop the automation if there any network issue comes.

Do anyone how can do this in Uipath?