Deployment flow fix.
test_app to trap SIGTERM when term=SIGTERM is set.