It would be unwise to count out the Catalonian bid for independence yet. They have a long history of being tenacious in defeat. From A History of the Peninsular War:
Thus six months had elapsed between the fall of Lerida and the commencement of the next stage of the French advance in Eastern Spain. If it is asked why the delay was so long, the answer is easy: it was due not, as some have maintained, to Suchet’s slowness or to Macdonald’s caution, but solely to the splendid activity displayed by Henry O’Donnell, a general often beaten but never dismayed, and to the tenacity of the Catalans, who never gave up hope, and were still to hold their own, after a hundred disasters, till the tide of success in the Peninsula at last turned back in 1812-13.
And clearly Henry O’Donnell was no gamma. Failure is never to be feared. It may be disappointing, but it should be viewed as nothing more than a stepping stone – and sometimes a necessary one – to ultimate success.