public function mainAction()
    {
        try {
            $host = $this->getHost();
            $port = $this->getPort($host);

            $this->run($host, $port);
        } catch (\Exception $e) {
            $this->block([$e->getMessage()], 'error');
            return;
        }
    }