Upon the fall of Venice he fled to Corfu and in France. In 1859, in the wake of the Second Independence War, Cosenz went to Piedmont, where he assumed the command of a Hunters of the Alps (Cacciatori delle Alpi) regiment, fighting in the Battle of Varese.