Hi anyone knows if there any way for VM to notify me if it’s disconnected from internet?

I set up a windows VM and use it for some gaming (botting), and access it through Google Remote Access. The problem is my internet is unstable and will disconnected after a certain time.

Is there any way that VM can notify me after it reconnect to internet and I will just enter remote access to login back to the game?