Foley, Thomas, active 1785-1787, Captain