sentences:  However, he was court-martialed for neglect of duty in allowing the B&O railroad's New Creek Station to be captured by Confederates in November 1864 with almost no resistance.Although convicted and sentenced to be dismissed from the service, perhaps because senior authorities recognized the number of times the station changed hands and the size of the raiding force, Latham nonetheless returned to duty and was brevetted brigadier general on March 13, 1865, days after the court martial conviction was reversed and shortly before he was honorably discharged.West Virginia voters elected Latham an Unconditional Unionist to the United States House of Representatives in 1864, and he served from 1865 to 1867, but did not seek re-election.