Avoid infinite loop if authcheck fails