Remember if you have closed this channel allready
Regression test for #49
Merge remote-tracking branch 'dmarkham/issue_49_double_close' into issue49
Reformat and remove redundant sets

Thanks @dmarkham!

Fixes #49
Closes #52
Merge branch 'issue49'
Merge remote-tracking branch 'upstream/master'