Automatic Close() on garbage collection.