Clean up the temp table space when queries finish; Clean up the memory when aggregation finishes
Merge pull request #1675 from VoltDB/ENG-6888-temp-table

ENG-6888. Backport to 4.0.1.x.