Don't create empty files on error.