Rins misses out on title after last-corner scrap