Make error handler call error callback