Capture std errno