DM-1331

Catch some on-the-edge exceptions and rethrow as MeasurementError, to set flags on sources instead of sending a warning to the log.