Closes all open figures in this path and starts a new figure. It closes each open figure by connecting a line from its endpoint to its starting point.