make `ep.fail` a shorcut for `ep.emit('error', err)`