MODULES-149: unload the module on linking failure