Improvements to connection checking/reconnecting for XBMC