added termination code if no response from xbmc