added proper error handling in gulp