Add catch for loading error