core: Cleanup reader.