LPS-35742 Allow delete portal instance

The previous commit broke lucene tests because I closed and deleted the index in wrong order. Also I failed to remove the IndexAccessor from the list. This one shouldn't break the tests and I also separated the close to shutdown so that if someone just want's to clean the index they can do it by deleting it.