Added default error handler.