Very quick closing of team viewer sessions in Mac

My team viewer session closes in 5 mins. I have a Mac. What's going on. I also use a non-commercial version. I cannot find the options- Advanced in Mac. Please help