[#6612] fail faster if an import fails