Make fetch/pull scripts terminate cleanly on errors