Jackson returned to Martinsburg in October 1862, following the Battle of Sharpsburg in Maryland. This time, not wanting to leave anything of use to the Federals, he ordered the Martinsburg roundhouse and all the shops burned." "The polygonal engine house, the half round engine house, the large and costly machine shops, warehouse, ticket and telegraph offices, the company's hotel and dining and wash house, coalbins, sandhouses, blacksmith shop and tool houses, pumping engine for water station and connecting pipes were all destroyed. The destruction of tracks also commenced and continued ... making a total of 37½ miles of track [destroyed]", including twenty miles (32 km) of track between Harpers Ferry and North Mountain. "This time Jackson's men did not move the torn-up iron south for use on their own lines, but rather heated it over bonfires of ties and fenceposts" so that the rail line could be traced "by a continuous line of fires."