delete C error handler