pdtest: Make exit code communicate the termination cause not counts