free the path when its no longer used