public function __construct(OutputInterface $output, $port = 8080, $host = '127.0.0.1', $slaveCount = 8)
{
$this->output = $output;
$this->slaveCount = $slaveCount;
$this->host = $host;
$this->port = $port;
register_shutdown_function([$this, 'shutdown']);
}