index.js
function failed(err) {
    leverage.emit(channel +'::error', err);

    if (!bailout) return debug('received an error without bailout mode, gnoring it', err.message);

    leverage.emit(channel +'::bailout', err);
    leverage.unsubscribe(channel);
  }
function failed(err) {
    leverage.emit(channel +'::error', err);

    if (!bailout) return debug('received an error without bailout mode, gnoring it', err.message);

    leverage.emit(channel +'::bailout', err);
    leverage.unsubscribe(channel);
  }
function failed ( err ) { leverage . emit ( channel + '::error' , err ) ; if ( ! bailout ) return debug ( 'received an error without bailout mode, gnoring it' , err . message ) ; leverage . emit ( channel + '::bailout' , err ) ; leverage . unsubscribe ( channel ) ; }
Bailout and cancel all the things

@param {Error} Err The error that occurred
@api private
Bailout and cancel all the things