headless linux hangs trying to teamviewer stop

Whe I try to do a teamviewer stop on a headless linux system it hangs with this error message:

root@DennisOctave:~# teamviewer  stop

 

Init...

xprop:  unable to open display ''

CheckCPU: SSE2 support: yes

XRandRWait: No value set. Using default.

XRandRWait: Started by user.

Checking setup...

 

 

Application tried to create a window, but no driver could be loaded.

Make sure that your X server is running and that $DISPLAY is set correctly.

err:systray:initialize_systray Could not create tray window

Application tried to create a window, but no driver could be loaded.

Make sure that your X server is running and that $DISPLAY is set correctly.

err:ole:CoGetClassObject class {4315d437-5b8c-11d0-bd3b-00a0c911ce86} not registered

err:ole:CoGetClassObject class {4315d437-5b8c-11d0-bd3b-00a0c911ce86} not registered

err:ole:CoGetClassObject no class object {4315d437-5b8c-11d0-bd3b-00a0c911ce86} could be created for context 0x3

wine: configuration in '/root/.local/share/teamviewer12' has been updated.

Launching TeamViewer ...

Launching TeamViewer GUI ...

 

There is no GUI on this system. Does anyone have a solution for this??

Dennis