filereader cleanup