Made control scripts stop on failure of an embedded job