make test: Add exception handling around subprocess.