1031008: Properly handle exceptions when checking compliance