Call close() in first(), last(), read()