Exit with error if subprocess failed