fix xbmc exit