Closing TeamViewer Manager Window Automatically After Disconnecting to Enable Screen Clearance

After i disconnect from the host computer i get a window on the host computer basically of teamviewer thats says remote access to this device is managed by one manager. i want this window to be closed when i disconnect because i am running pyautogui and need the screen to be cleared when i disconnect and not have this window be open. Is there anyway to make this possible?