Capture error on stats