Fix issue in reindex task where not restoring the original session would cause random test failures depending on what order rspec ran tests in.