Implement closePath fully