cleanup private data in finalize.
make sure that the file matches when highlighting buffers.