handle failure to save record