Enhance Error management using a MACRO CHECK_PVCAM

Tested and in production for a few months now.