LargeText: add logging of cache statistics on .close()

And also make .close() safe in the process!