Merge pull request #273 from ariard/2018-12-17-replace-by-permanent-channel-failure