Throw exception when temporary bash scripts fail