at the end of his standard eight hundredth tour of duty , which fell in the thirteenth century , he was to have been replaced by a young agent , and return to vrizhongil for a headquarters job for another five hundred years before retiring .