protected function command($params = []) { if (!isset($params['alias']) || !isset($params['flags'])) { throw new RejectionException('Invalid params.'); } return $this->runtime->getManager()->destroyThread($params['alias'], (int) $params['flags']); }