Return an error if the module can't be found

Also log this error. Need this for the module loading function.