Set finish flag and increment attempt counter