Bugfix: Properly cleanup after md test_ranges.