Ensure that we close with_channel after exception
Merge pull request #178 from carlhoerberg/ensure_close_channel

Ensure that we close the channel even if the with_channel block thrown an exception