Gracefully handle errors while loading