Aplin, Christopher D'Oyley, 1787-1833, Captain