fix bug closing closed channel
jira: MB-9223