Fix the botched previous commit.

The previous commit tried to disable the Accumulator when close is
called.  This made the generator crash while doing the final write of
the seed file.  Fix this, by first writing the seed file and only then
disabling the generator.