public function signalHandler($signo)
{
switch ($signo) {
case SIGTERM:
$this->output->writeln("<fg=red>Got SIGTERM.</fg=red>");
$this->shutdown();
exit;
case SIGINT:
$this->output->writeln("<fg=red>Got SIGINT.</fg=red>");
$this->shutdown();
exit;
}
}