Move auto release timeout to if check.