What is the origin of the idiom ' take a powder'?

Origin: By 1925, this was a popular expression in the US. Powder referred to the explosiveness of gunpowder - if you flee so you won't get caught for something, you are taking a powder.