Added Indexer.isClosed() method

Added Indexer.isClosed() method