Change error handling in factory loader

Instead of throwing an exception if a factory class cannot be instantiated, log an error and carry on.