handle module loading failure