closing the reader instead of calling deactivate