Only run check index if the state before closing is: started, relocated or post_recovery