 At times, the deserting soldiers would be returned to the Army via Confederate units that were stationed near to whatever area the deserters were captured.Sometimes deserters were executed by the Home Guard.By 1864, the Union Army occupied much of the formerly Confederate-controlled areas.