only Close() if it's a new file