Dovizioso hangs on for result in final Tech 3 race