with only a skeleton crew of 345 men , his ships company depleted in prizes and shoring up the garrison at toulon ; despite the odds stacked against him , nelson beat to quarters and attacked four french frigates and a corvette , fighting a close action for several hours before the enemy ships hauled their wind and fled .