If I exit out of a remote POS, why its running program quit itself?

Options

After I am done with my customer POS, I exit and then its running program quit itself. Someone told me it's about my teamviewer setup. Can someone put some why?