cleanup of FileWriter and FileReader stack components