Add a error handler impl for debugging purposes.