Formulate an answer to this elaborate question: How did the 52nd Governor of New Jersey leave the office in 2004?
Democratic Governor Richard Codey, who replaced Governor Jim McGreevey in 2004 after his resignation, did not run for election for a full term of office.