public function sigtermHandler($signo)
{
// tell the user what is happening
echo PHP_EOL;
echo "============================================================" . PHP_EOL;
echo "USER ABORT!!" . PHP_EOL;
// do we skip destroying the test environment?
if ($this->st->getPersistTestEnvironment()) {
echo PHP_EOL . "* Warning: NOT destroying test environment" . PHP_EOL . " --reuse-target flag is set" . PHP_EOL;
}
// cleanup
echo PHP_EOL . "Cleaning up: ";
$phasesPlayer = new PhaseGroup_Player();
$phasesPlayer->playPhases("user abort", $this->st, $this->injectables, $this->injectables->activeConfig->getData('storyplayer.phases.userAbort'), null);
echo " done" . PHP_EOL . "============================================================" . PHP_EOL . PHP_EOL;
// force a clean shutdown
exit(1);
}