Add error handler for system messages