Further research has the Army List for 1825 still listing him as a captain. He was not retiring or transferring.