The first two months of 1865 passed without incident and on March 2, Wharton's Division and some remaining troops in southwestern Virginia now under Early's command was ordered to move east to support Lee's army. They got as far as Waynesboro, trailed by Custer's cavalry, before forming a line of battle to repulse the Union. Wharton's 800 men were quickly surrounded by the 7,500 Union cavalry and surrendered, though Wharton and Early both escaped. Some of the men of the 45th Virginia managed to escape as well, but Major Miller and 119 of the men were captured.