avoid crash when crecord is in bad state
Merge branch 'NRPUIV2' of github.com:capensis/canopsis into NRPUIV2