If you can identify the entry point (fine sawdust like material on the trunk) simply take a sewing needle and probe in several spots all the way throught the trunk to effectively spear the borer. It may slightly stress the plant if you go a little bit overboard but is much less than the damage the borer creates. On my outdoor grows, I apply a insecticide called Imidacloprid (patented under the trade name "Merit") as it is a systemic, broad-spectrum insecticde that works well as a preventive for boring insects. If the damage is confined to the stems only (not the trunk) you can also cut the damage away with a pair of pruning shears then dispose of properly. I usually burn them as I hate the bastards. Other insecticdes such as Acephate (Orthene) can be applied early in the season in your immediate grow area for control of beetle borers.