added convenient 'getModulesWithFacet' method
cleanup partially initialized state by closing opened files if exception is thrown from storage constructor