update gulpfile with better error handling