Make TextureLoader use correct error handling.