Fixed a bug, channel shutdown may not cause call to complete.