error handler for cyanbird