added rescue block to stop failed API calls preventing save