fix log import, add logging on reconnect. call resetDelay on connection to reset backoff delays from previous reconnects.
handle db reauthentication on reconnect. add a little more logging.