Changed error handler.