Auto - Close Error Box

This code works well:

from java.awt import Window, Frame 
from javax.swing import JFrame 
for wind in Window.getWindows(): 
	if isinstance(wind,JFrame): 
		if wind.getTitle() == 'Error': 
			wind.dispose()

All that is needed is to drop it in a client timer script and it will auto close all Error pop ups.