Cleanup b2distance.