In closing via reverse, the indexes should be valid for each iteration, including if a modified tab persists. That issue is both why I chose to do it in reverse, and did not implement "Close other tabs"