Cancel the ROOT extras on error in more general way.