Handle errors during java.awt.Toolkit.getDefaultToolkit()