The Draw documentation says commands in a shape block are automatically closed. This is not the case for curve (and I assume similar shapes), which need to manually be closed with the keyword "close". The keyword "close " does not seem to be mentioned anywhere on the documentation.