Add try/catch around nextRow and reset