Kill test subprocess when parent is terminated