Updated condition to detect timeouted connection of factory