handler errors from callbacks