https://github.com/docker/docker-py/blob/master/docker/client.py#L479-L480 tries to close the context whenever it's present, but it possibly does not own (== did not create) that object, since it could have come from `fileobj` when `custom_context` is `True`.