Catch issues when writing to channel fails.