 Cunningham was also active in capturing several Spanish privateers, and pursuing French warships.In summer 1801 Cunningham was appointed Commodore, and given command of a squadron of frigates to guard against a possible French invasion of the Channel Islands.On 21 July was wrecked on the French coast.