Fix from Vinaj for the "writing to closed file" errors.  SF 670390.
2 files changed