Added error checking, and before load hook to AssetManager