Close and fill the path.