Ensure writer.close() is invoked by CMLWriter.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>