Fix in readFile only, stop leaking descriptors in readFile