I'm running Teamviewer on a Raspberry Pi for remote access. Most of the time this works great, but every now and then teamviewer crashes or at least will not accept incoming connections anymore. The only solution is to restart the deamon or the raspberry pi. However given the inaccessibility of the remote system, that is not an easy task to perform.
Currently I use a cronjob that reboots the rasp every 24 hrs, but that is not the proper way to do it.
Would it be possible to add a watchdog timer to teamviewer, such that if it hasn't seen any incoming connections for a given time, it will restart, or issue a complete system reset.