exit with error if subprocess for hooks or run fail