fix assertion on XBMC exit
update for Cubox-i