Loop in case node crashes