Keep one connection open to each file, and close them when destroy is called.