handle errors while loading resources