Every time I close the TeamViewer connection, the program on the host computer that should remain running is paused. When I log back in it resumes.
However, if I login with Team Viewer from the same location as the host, with both computers connected to an ethernet network, I have never had the problem, though I have logged out and back in 5 times in a row.
The host computer is an iMac running Sierra 10.12.6
The client computer is a MacBook Pro running Mavericks 10.9.5
Both have TeamViewer 12.0.82953