For ground wasps, if you find the hole, simply put a glass bowl over the hole at night and they will fly up and not be able to get out, but because they can see the sky they won't dig another escape hole. I did it, it works. Just have to leave it until no more try to fly out.