TeamViewer exit

Hi guys ... Sorry for my english!
Recently I noticed in my Android device (op6) a lock on the x output of TeamViewer and then once I go out the PC hangs and always requires me to pin blocking apps in use on the PC!
What happened?
How do you disable this? Thank you all