Ensure closing of local file handles when setting up nested local loggers