Clean up PathfinderBase.