proper way for xbmc exit

we cannot check the status in another thread, it has to be the one xbmc
called!