Updated module loading exception handling