doc, better error handling
retry on capture error