Raise StopIteration when a Channel is closed and empty

Closes #12.