cpp: FormatWriter: Clear initialised planes on close