public function setupSignalHandler()
{
$this->output->writeln('Handling signals SIGTERM and SIGINT for stack ' . $this->currentStack->getName());
declare (ticks=1);
pcntl_signal(SIGTERM, array($this, 'signalHandler'));
// Jenkins: aborting a job
pcntl_signal(SIGINT, array($this, 'signalHandler'));
// CTRL+C on command line
}