When calling IndexManager#flushAndReleaseResources on a index manager configured with the async worker, it closes the IndexWriter and does not apply the pending work causing exceptions.