Add basic error handler.