TV closes when the computer disconnects from the internet

Hi, I have been experiencing an issue with TeamViewer. The Wi-Fi connection on the computer I'm trying to access has been very unstable lately, and every time it disconnects from the network, it also closes the TV app.

Is there a way to fix this?