Run tests with --abort-on-uncaught-exception.
Send SIGABRT instead of SIGTERM when a test times out so that it
generates a core dump.