Use atomic int for error code in channel