by the time admiral dumanoirs in the formidable , commanding the lead element , realised what was happening and turned back to join the battle , the advantage was lost and he could see that his four ships were standing into the muzzles of the british guns , so he merely traded broadsides at long range and then sailed away , heading back for cadiz .