cleanup error messages