MacLean, Allan, active 1812-1846, Secretary, Irish Custom House