Moved IOError handling to TextureManager.