Not really "shutting them down" but preventing them to pop up but depends on what's causing them, if it's the blizzard interface you can disable errors in the interface menu, if it's other addons you can either update the ones giving the errors or download Buggrabber and Bugsack to prevent them from popping up while also keeping logs of the errors for later viewing.