Call Close() on garbage collection, in case the user forgets.