Okey, when I close the team-viewer session, after checking my main computer so see how my bots are going, my main computer automatic locks down which means that my bots stops working.
I think it may be because of teamviewers sponsered massage, the popup... You can remove that by: "windows" + "r" regedit, and go to \HKEY_CLASSES_ROOT\TeamViewerSession\shell\open\command and delete the data.