When connected to my ubuntu computer remotely, my teamviewer session always ends when I hit the "show deskop" button. I think what's happening is that since the little side panel doesn't have a the capability of being minimized, it's being closed instead.