unify `make test` and `jenkins.sh` logic and shutdown services on test failure