Avoid re-sending already sent messages when the channel is closed.
Merge pull request #119 from akalankapagoda/AvoidResend

Avoid re-sending already sent messages when the channel is closed.