Signal handling for run_tests.py

SIGINT and SIGTERM are handled, causing further test execution to stop and the results to be printed immediately. Also cleans up prebuilt objects.