handle writing to full file (mathematica failure)