surrounded XBMC related areas with try catch.