Closes the index for further read or write operations.
Implementations may throw specific exceptions.