Refactor error catching using 'gulp task', add package dependency.