RFAPI, add a general error handler.