bail out if building modules failed