Make sanitization script work more resiliently with less error conditions

3 jobs for master in 52 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed compile #412933

00:00:37

 
  Test
passed test_npsim #412934

00:00:15

 
  Deploy
passed staging