Fix double close of pubsub channel.