Added better error message when a module cannot be loaded