unsubscribe channels before re-subscribing

redo of PR #76. Not quite ready, but I need to make travis go.