Feature/en 1889

You should close the reader before returning.