by the writer. If a buffer or file-like object was passed in, for example a GzipFile, then leave this file open for the caller to close. N)