Cleans up the path processor.