Fix switching frontend when exiting XBMC