fix XBMC forced exit