Avoid import loop
Added additional error messages and stats
Merge pull request #11244 from SmithSamuelM/sam_raet_24

Sam raet 24 Added additional error messages