Cleared memory in the close() method of TwoKeyCompanion

Because it looks like somehow the objects are not getting released (probably due to threads living
on with references to the objects), we need to clear the memory when we're done, or we end up
growing enormously huge by the end of a long series of runs.