First I would never use pesticides, ever. They kill more than just the bugs. My solution is to cut the branches out of the tree and put in a sealed container. Take then for a drive in the country and let them go where they can find new digs. I know where there are a few old cherry and apple trees along an old hedge row and they love these trees along with many others.
Hope you come to a peaceful solution for your unwanted guests.
peace