Close stream files and cache open streams for cluster.