public function freeChannel($id)
    {
        if (!is_int($id)) {
            throw new \InvalidArgumentException();
        }

        unset($this->channels[$id]);
        unset($this->handlers[$id]);
        return $this;
    }