in channel._on_close(), make sure connection is open before … sending CloseOk