Explicitly close all temporary filehandles