According to the literature I have read, yellow jackets are considered beneficial because they eat crop destroying bugs (except for the honeybees I guess). The drawback of course is that they are very agressive. Smashing one will release a scent which will cause others to attack.
Yellow Jacket Fact Sheet