             }
 
             // Done loading
+            _loader.shutdown();
+        });
+        loadDomFile.failed.add(function (error :Object) :void {
+            _library.addError(_library, ParseError.CRIT, "Unable to read " + domFile.nativePath,
+                error);
             _loader.shutdown();
         });
     }


    protected function listLibrary (file :File) :void {
        use namespace xflns;
        var loadDomFile :Future = Files.load(file.resolvePath("DOMDocument.xml"), _loader);
        loadDomFile.succeeded.add(function (domFile :File) :void {
            const xml :XML = bytesToXML(domFile.data);


            }
        });
        loadLibraryFile.failed.add(function (error :Object) :void {
            _library.addError(_library, ParseError.CRIT, "Unable to read " + file.nativePath, error);
        });
    }

