FIXED #33 - done.txt being corrupted after task completion.