Horatio P. Chapin, Civil War Soldier