refine save-file failure