Don't write seq file except on success

Otherwise failed purges never get purged.
v1.0.1