For killing the occasional straggler without getting hit, throwing sticks are fine, but I’d recommend having a spear for reach attacks and a small chessboard of pits to dance them around. They fall into a pit, get stuck, you stick them with the spear a couple of times, they climb out, you dance away until they get stuck again, wash rinse and repeat.
I usually go for a 5x5 pattern of pits, with the outer ring shallow pits and five deep pits in an X in the middle, because deep pits take a while to dig out.