Question: How did the 52nd Governor of New Jersey leave the office in 2004?

Context paragraphs:
George H. Prouty: George Herbert Prouty (March 4, 1862August 18, 1918) of Newport, Orleans County, Vermont was a Republican member of the Vermont House of Representatives from 1896 to 1897; a member of Vermont State Senate from 1904 to 1906; the 45th Lieutenant Governor of Vermont from 1906 to 1908; the 52nd Governor of Vermont from 1908 to 1910; and Delegate to the 1916 Republican National Convention.

Jim McGreevey: James Edward McGreevey (born August 6, 1957) is an American politician and member of the Democratic Party, who served as the 52nd Governor of New Jersey from 2002 until his resignation in 2004.  He was also a seminarian.  He served in the New Jersey General Assembly from 1990 to 1992, as the Mayor of Woodbridge Township from 1991 to 2002 and in the New Jersey Senate from 1994 to 1998.  He was the Democratic nominee for Governor of New Jersey in 1997 but was narrowly defeated by Republican incumbent Christine Todd Whitman.  He ran again in 2001 and was elected by a large margin.

Henry B. Quinby: Henry Brewer Quinby (June 10, 1846 – February 8, 1924) was an American physician, businessman, and Republican politician in the U.S. state of New Hampshire.  He was the 52nd Governor of New Hampshire and served in the New Hampshire House of Representatives and the New Hampshire Senate.

New Jersey gubernatorial election, 2005: The New Jersey gubernatorial election of 2005 was a race for the Governor of New Jersey.  It was held on November 8, 2005.  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.

Joseph B. Ely: Joseph Buell Ely (February 22, 1881 – June 13, 1956) was an American lawyer and Democratic politician from Massachusetts.  As a conservative Democrat, Ely was active in party politics from the late 1910s, helping to build, in conjunction with David I. Walsh, the Democratic coalition that would gain an enduring political ascendancy in the state.  From 1931 to 1935, he served as the 52nd Governor.  He was opposed to the federal expansion of the New Deal, and was a prominent intra-party voice in opposition to the policies of Franklin Delano Roosevelt.  In 1944 he made a brief unsuccessful bid for the Democratic presidential nomination.

Louie Nunn: Louie Broady Nunn (March 8, 1924 – January 29, 2004) was the 52nd governor of Kentucky.  His election in 1967 made him the first Republican to hold that office since the end of Simeon Willis' term in 1947, and the last to hold the position until the election of Ernie Fletcher in 2003.

Mario Cuomo: Mario Matthew Cuomo ( ; ] ; June 15, 1932 – January 1, 2015) was an American Democratic politician.  He served as the 52nd Governor of New York for three terms, from 1983 to 1994, Lieutenant Governor of New York from 1979 to 1982; and Secretary of State of New York from 1975 to 1978.

52nd New Zealand Parliament: The 52nd New Zealand Parliament was elected at the 2017 general election.  The 52nd Parliament consists of 120 members, pending the release of official results, and will serve until the next general election.  Under section 17 of the Constitution Act 1986, Parliament expires three years "from the day fixed for the return of the writs issued for the last preceding general election of members of the House of Representatives, and no longer."  With the date for the return of writs for the general election set at 12 October 2017, the 52nd Parliament must be dissolved on or before 12 October 2020.

52nd Street (IRT Flushing Line): 52nd Street (also known as 52nd Street–Lincoln Avenue) is a local station on the IRT Flushing Line of the New York City Subway.  Located at the intersection of 52nd Street and Roosevelt Avenue in Woodside, Queens, it is served by the 7 train at all times.

George C. Peery: George Campbell Peery (October 28, 1873 – October 14, 1952) was an American Democratic politician, and was the 52nd governor of Virginia from 1934 to 1938.  He became the second governor to be selected, at least partially, by the soon to be very powerful "Byrd Organization", led by Senator Harry F. Byrd, Sr.

Supporting paragraphs: New Jersey gubernatorial election, 2005 Jim McGreevey
Answer: 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.