Made loading modules a bit safer.  Also added more logging.

Before this commit, modules could be loaded and if something was fatally
wrong, it would kill the program.  Now, in most cases, it should fail
silently.