Updated ErrorListener to have clearErrors.