Restored previous state of the file writer in the ZFP