added missing error handling to gulp tasks