 He completed this assignment without a single prisoner escaping.General Pender was killed during the Battle of Gettysburg in July, 1863.Although his regiment had 20 men killed at Gettysburg, Miller survived the defeat and helped organize the Confederate retreat.