close FOO after reading it.