McGuire was captured at the Battle of Waynesboro in March 1865, but was released and rejoined the Army of Northern Virginia. He was present at the surrender at Appomattox Court House.