Handle exceptions throw from module loader callback.