Francis Parnell Murphy, Governor of New Hampshire