Hatfield, John, active 1777-1784, Captain