Flanagan confirms his Roosters NRL exit