deleting temp files and closing input streams

 Solving some problems found when testing the tool with a 60GB PostgreSQL database with many CLOBS.