Capture return code from 'extract'