Ensure that we close with_channel after exception