fixed race condition on channel close when using gevent
removed None assertion