in channel._on_close(), make sure connection is open before
sending CloseOk
Merge pull request #252 from tower3/master

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