Use time.sleep instead xbmc.sleep for pulsard monitoring, in case xbmc.sleep blocks when quitting