Revert "ups,ofstream::close should be called."

This reverts commit 8fd890f0d5a14389ac7d86ecf7076611ca8620cd.