prevent waitForProperty from blocking forever in case of a connection loss