code: func (r *Router) handleEventFailure(msg *config.Message) {
  	if msg.Event != config.EventFailure {
  		return
  	}
  	for _, gw := range r.Gateways {
  		for _, br := range gw.Bridges {
  			if msg.Account == br.Account {
  				go gw.reconnectBridge(br)
  				return
  			}
  		}
  	}
  }
docs: // handleEventFailure handles failures and reconnects bridges.