Close unused ends of inter-process comm channel.