And define the error handler properly...