public override close() as Void throws IOException:
Closes the underlying writer when one was provided.