A use of weapon isn't necessarily the right thing to do, because then the Pokemon might get hurt. Unless you have some immediate remedy or a Pokemon that has the Natural Cure ability.
Though, I would always like to thank a Pokemon by having a battle with it fair and square.
Seriously have you thought of a device (attached to your hand) which would capture Pokemon? I have. xD