Ensure that channel not closed 2 times in row

Fix #114