Good call. I also meant to explicitly say it's up to the caller to close the file-like object after this call.