Moving sigterm tester outside of PHPUnit