add handlers for error events so gulp doesnt't crash every time an error event is emitted

watchify will probably need some special treatment but this will do for now